#pragma once

#include <string>
#include <boost\filesystem.hpp>
#include <boost\shared_ptr.hpp>
#include <vector>
#include "JSerialize.h"

using namespace boost;
using namespace boost::filesystem;

class JFile;

typedef shared_ptr<JFile> JFilePtr;

class JSerializeFile
{
public:
	JCharPtr classSize;
	JCharPtr fileName;
	JCharPtr createtime;
	JCharPtr verifyTime;
};

class JFile
{
public:
	std::string fileName;
	std::string createTime;
	std::string verifyTime;


	void GetInfo(path& p);
	JSerializeFile Serialize(int& selfSize);
	void ReSerialize(JCharPtr data,int& selfSize);
	JFile(void);
	~JFile(void);
};

